package com.whlilong.jxc.treemodel;

import java.util.ArrayList;
import java.util.List;


public class BrandInfoTreeParent {
	private String goodsbrandname;
	
	private List<BrandInfoTreeChildren> SpbrandTreeChildren;
	
	public BrandInfoTreeParent(String goodsbrandname){
		this.goodsbrandname = goodsbrandname;
		SpbrandTreeChildren = new ArrayList<BrandInfoTreeChildren>();
		
	}
	
	//添加子节点
	public void add(BrandInfoTreeChildren sp){
		SpbrandTreeChildren.add(sp);
		sp.setSpbrandParent(this);
	}

	public String getGoodsbrandname() {
		return goodsbrandname;
	}

	public void setGoodsbrandname(String goodsbrandname) {
		this.goodsbrandname = goodsbrandname;
	}

	public List<BrandInfoTreeChildren> getSpbrandTreeChildren() {
		return SpbrandTreeChildren;
	}

	public void setSpbrandTreeChildren(List<BrandInfoTreeChildren> spbrandTreeChildren) {
		this.SpbrandTreeChildren = SpbrandTreeChildren;
	}

}
